package com.evan.aiu.dao;

import com.evan.aiu.entity.Comment;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CommentDAO extends JpaRepository<Comment,Integer> {
    Comment findById(int id);
    List<Comment> findAllByAnswerId(int aid);
}
